<%--
  Created by IntelliJ IDEA.
  User: MadFrog
  Date: 2017/6/9
  Time: 10:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>投票列表</title>
    <%@include file="../common/_head.jsp" %>
</head>
<body ontouchstart>
<div class="weui-panel weui-panel_access">
    <c:forEach items="${userElectList }" var="userElect">
        <%--<div class="weui-cell">--%>
        <%--<div class="weui-cell__bd">--%>
        <%--<input type="hidden" id="userElectId" value=${userElect.id }>--%>
        <%--<p>${userElect.elect.title }</p>--%>
        <%--</div>--%>
        <%--<div class="weui-cell__ft">--%>
        <%--<a href="javascript:;" id="signIn" class="weui-btn weui-btn_mini weui-btn_primary">投票</a>--%>
        <%--</div>--%>
        <%--</div>--%>

        <div class="weui-media-box weui-media-box_text">
            <a href="vote/${userElect.id }">
                <input type="hidden" id="userElectId" value=${userElect.id }>
                <h4 class="weui-media-box__title">${userElect.elect.title }</h4>
                <p class="weui-media-box__desc">${userElect.elect.description }</p>
            </a>
        </div>

    </c:forEach>
</div>
</div>
<%@include file="../common/_foot.jsp" %>
<script>

</script>
</body>
</html>
